<?php

class MySQLDataResult
{
	private $result;
	
	function __construct($result)
	{
		$this->result = $result;
	}

	function getNumRows()
	{
		return mysql_num_rows($this->result);
	}
	
	function fetchAssoc()
	{
		return @mysql_fetch_assoc($this->result);
	}
}
?>